package edi.dao;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
  

import java.util.List;
import edi.entities.DocHistoryEntity; 
import java.sql.Date; 

@Repository
@Transactional
public class DocHistoryDaoImp extends HibernateCrudDao<DocHistoryEntity> implements DocHistoryDao {
    
    public DocHistoryDaoImp() {
	super(DocHistoryEntity.class);
    }

    
    @Override
    public List<DocHistoryEntity> findByFileId(Long id) {
	return (List<DocHistoryEntity>) session().getNamedQuery("DocHistory.findByFileId").setLong("dchDocId", id).list();
        
        
    } 
            
}  